import ReactDOM from 'react-dom'
import React from 'react'
import List from './List'

import dispatcher from './dispatcher'

// 使用中间件
dispatcher.use((action, next) => {
  console.log(action.actionType, '---log1---')
  next()
}).use((action, next) => {
  console.log(action.actionType, '---log2---')
  next()
})

ReactDOM.render(<List/>, document.querySelector('#app'))